Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Programming > How to print a computed footer on a Lotus Notes document
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

When 38.3 - 38 equals 0.299999999999997... and what to do about it

Obviously I forgot about the "fraction()" function, so I removedchanged parts of this article (thanks @Mario for the hint) :)   If you need the digits behind the decimal seperator of a number, you might subtract the integer of the number from the number itself: 1.3 int(1.3) e.g. would result ...

When rounding 0.5 equals 0... and what to do about it

Do you know the difference between rounding a number commercially and rounding it mathematically? Notes does... This is, why in Formula @Round(0.5; 1) equals 1, but the equivalent in LotusScript round(0.5, 0) equals 0... Wonder if round(1.5, 0) equals 1? No, the result is...: 2 The reason is, that ...

The third SaveOptions value, or How to suppress the "Do you want to save this document?" message box in Notes

Yes, SaveOptions understands more than just "0" or "1": Did you ever face the problem, that Lotus Notes keeps asking if you want to save the current document, even though you just did? Picture the following scenario: A user creates a document with a certain form that contains a "Change Field ...

Pitfall on NotesUiDocument vs. NotesDocument field changes - unexpected "Reload"

When performing mixed changes on fields, i.e. changing fields in a NotesUiDocument and others in the corresponding backend NotesDocument, it is very important to make sure that they do not have any sideeffects on each other. Could be ugly...   To see what I mean, try this one:   Build a simple ...

Forgotten Notes Features: $PaperColor

Anyone remember, and actually uses (besides in his memos, maybe not knowing) the field "PaperColor" in Lotus Notes documents? Using this field, you can set a dynamic background color in your documents. The field needs to be numeric and contain a number from 1 to 238; usually this field will be ...
Community articleHow to print a computed footer on a Lotus Notes document
Added by ~Frank Quetlupulikle | Edited by IBM contributor~Hank Chuveluveroni on March 2, 2010 | Version 2
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: Footer Notes Form
Some time ago I was asked to make a print form in Lotus Notes (R7), that required certain things you would normally rather do with a word processor. One of these things was a variable, computed footer (a dblookup from a parameter).

Now Notes knows footers and Notes knows computed values, but it doesn't know computed values *in* a footer. Placing a computed value at the end of the form (there already, how would you define the end?) didn't help as the footer had to be on every page, well, just as expected from a real footer.

Trying to find a solution, I even went into the DXL code:


<item name='\$Footer'>
  <rawitemdata type='1'>
    jv80AABEZWZhdWx0IFNhbnMgU2VyaWYAAAAAAAA
AAAAAAAAAAAEAAAkJADEyMzQ1Njc4OQ==
  </rawitemdata>
</item>

 
I found some interesting patterns changing the footer ;-), but nothing that would really help. Until, on one of these magic coffee breaks, I finally found a solution:

The footer on a Notes form knows the placeholder "&W", which stands for the window title of the document. The window title can be computed, so I placed my dblookup in the formula section of the window title, added "&W" to the footer of my Notes form, and had my variable, computed Notes footer.

One thing that does not work with this, is placing the formula in a computed field and adding the fieldname to the formula section of the window title. Notes computes the window title before the computed field, so the footer would be empty. In order to make it work, you would have to code the complete formula directly in the window title.

About the Author
Marcus Foerster works as Systems Architect for Pentos AG in Munich, Germany. His focus lies on the application side, creating collaboration systems for users, groups and enterprises to get their daily work done. This approach includes integrating complex workflows with intuitive user interfaces, using Lotus Notes/Domino with Adobe Flex and other Web technologies.
Read more in Marcus' blog: http://marcus.foerster.com/blogexternal link

  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (2)
collapsed Versions (2)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (2)Mar 2, 2010, 8:02:19 PM~Hank Chuveluveroni  IBM contributor
1Mar 2, 2010, 5:11:57 PM~Hank Nonhipilygon  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility